#ifndef SETTINGS_H
#define SETTINGS_H

#include <QStringList>
#include <QString>

#define SETTINGS_FILE_PARAM "-f"
#define SETTINGS_DB_NAME_PARAM "-db"
#define SETTINGS_DB_SERVER_PARAM "-s"
#define SETTINGS_DB_USER_PARAM "-u"
#define SETTINGS_DB_PASSWORD_PARAM "-p"

class Settings
{    
 //     "udfImporter -f udf_file_path -s db_server -db db_name -u db_user -p db_password";

    QString _filePath;
    QString _dbServer;
    QString _dbName;
    QString _dbUser;
    QString _dbPassword;

private:
    void _resetParams();

public:
    Settings();

    bool parseFromCommandLine(QStringList &commanLineParams);

    QString getFilePath();
    QString getDbServer();
    QString getDbName();
    QString getDbUser();
    QString getDbPassword();

};

#endif // SETTINGS_H
